﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ImportUtility
{
    public interface IImportUtility
    {
        bool Init();
        bool SetFile(string _filename);
        bool Import(bool _bDuplicate);
        event EventHandler UpdateImportStatus;
    }
    public enum UpdateStatus
    {
        ImportStarted,
        ImportProgressing,
        ImportFailed,
        ImportCompleted

    }
    public class UpdateImportStatusEvent : EventArgs
    {
        UpdateStatus _importStatus;

        public UpdateStatus ImportStatus
        {
            get { return _importStatus; }
            set { _importStatus = value; }
        }

        string _statusMessage;

        public string StatusMessage
        {
            get { return _statusMessage; }
            set { _statusMessage = value; }
        }

        int _progressCounter = 0;

        public int ProgressCounter
        {
            get { return _progressCounter; }
            set { _progressCounter = value; }
        }



    }
}
